let p1 = null;

$(function () {
    p1 = $("#test");

    p1.next().html("321");
});